//Enter a positive integer and find all its prime factors.
#include<stdio.h>
int main()
{
    int aNum;
    printf("请输入一个整数：");
    scanf("%d", &aNum);
    printf("%d=", aNum);
    for (int i = 2; i <= aNum; i++)
    {
        while (aNum % i == 0)
        {
            printf("%d", i);
            aNum /= i;//去除该因子
            if (aNum != 1) printf("*");
        }
    }
    
    printf("\n");
    return 0;
}
